<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE>
<html>
<head>
    <base href="<%=basePath%>">
    <title></title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="stylesheet" type="text/css" href="css/edittable.css"  ></link>
    <link rel="stylesheet" type="text/css" href="css/validate.css"  ></link>
    <script type="text/javascript"  src="js/jquery-1.8.0.js"></script>
    <script>
        $(function(){
            $("input[type=text]").focus(function(){
                $(this).addClass("input_focus");
            }).blur(function(){
                $(this).removeClass("input_focus");
            });

            $(".form_btn").hover(function(){
                    $(this).css("color","red").css("background","#6FB2DB");},
                function(){
                    $(this).css("color","#295568").css("background","#BAD9E3");
                });
        });
    </script>
</head>
<body>
<div class ="div_title">
    <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>角色添加</span></div>
</div>
<form action="RoleServlet" method="post" >
    <input type="hidden" name="flag" value="updatejuese" />
    <input type="hidden" name="pageIndex" value="${pageIndex}" />
    <table class="edit_table" >
        <tr>
            <td class="td_info">账号:</td>	<td class="td_input">
            <input type="text" name="rolename" id="rolename" class="txtbox" value="${admin.adminName }" readonly />
        </tr>
        <tr>
            <td class="td_info">角色:</td>
            <td>
                <select name="roleId">
                    <c:forEach var="r" items="${roleList }">
                        <option value="${r.id }"   <c:if test="${admin.roleId==r.id }"> selected </c:if>>${r.roleName }</option>
                    </c:forEach>
                </select>
            </td>
        </tr>

        <tr>
            <td class="td_info"> </td>	<td>
            <input class="form_btn" type="submit" onclick="return confirm('确认提交吗')" value="提交" />
            <input type="reset"  class="form_btn" value="重置" />
            <label>${msg}</label>
        </td>	<td class="info"> &nbsp;</td>
        </tr>
    </table>
</form>
</body>
</html>
